<script type="text/javascript" th:inline="javascript">
    alert([[${msg}]]);
    window.parent.location.href=[[${ctx}]]+"/index";
</script>